package dao;

import pojo.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {

    //添加学生
    void addStudent(Student student) throws SQLException;

    //根据偏移量和每页的数量查询学生信息
    List<Student>findStudentsByPage(int pyl,int pageSize) throws SQLException;

    //查询显示的总数量
    long getCount() throws SQLException;

    //根据id删除学生
    void deleteById(long stuId) throws SQLException;

}
